package com.flyco.modules.ums.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.flyco.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class UmsMemberReceiveAddressVO {

    @ApiModelProperty(value = "id")
    private Long id;
    /**memberId*/
    @Excel(name = "memberId", width = 15)
    @ApiModelProperty(value = "memberId")
    private Long memberId;
    /**客戶编码*/
    @Excel(name = "客戶编码", width = 15)
    @ApiModelProperty(value = "客戶编码")
    private String customerCode;
    /**三方地址ID*/
    @Excel(name = "三方地址ID", width = 15)
    @ApiModelProperty(value = "三方地址ID")
    private Long thirdId;
    /**收货人名称*/
    @Excel(name = "收货人名称", width = 15)
    @ApiModelProperty(value = "收货人名称")
    private String name;
    /**phoneNumber*/
    @Excel(name = "phoneNumber", width = 15)
    @ApiModelProperty(value = "phoneNumber")
    private String phoneNumber;
    /**是否为默认*/
    @Excel(name = "是否为默认", width = 15)
    @ApiModelProperty(value = "是否为默认")
    private Integer defaultStatus;
    /**邮政编码*/
    @Excel(name = "邮政编码", width = 15)
    @ApiModelProperty(value = "邮政编码")
    private String postCode;
    /**省份/直辖市*/
    @Excel(name = "省份/直辖市", width = 15)
    @ApiModelProperty(value = "省份/直辖市")
    private String province;
    /**城市*/
    @Excel(name = "城市", width = 15)
    @ApiModelProperty(value = "城市")
    private String city;
    /**区*/
    @Excel(name = "区", width = 15)
    @ApiModelProperty(value = "区")
    private String region;
    /**详细地址(街道)*/
    @Excel(name = "详细地址(街道)", width = 15)
    @ApiModelProperty(value = "详细地址(街道)")
    private String detailAddress;
    /**省份编号*/
    @Excel(name = "省份编号", width = 15)
    @ApiModelProperty(value = "省份编号")
    private String provinceCode;
    /**城市编号*/
    @Excel(name = "城市编号", width = 15)
    @ApiModelProperty(value = "城市编号")
    private String cityCode;
    /**区编号*/
    @Excel(name = "区编号", width = 15)
    @ApiModelProperty(value = "区编号")
    private String areaCode;
    /**删除标记*/
    @Excel(name = "删除标记", width = 15)
    @ApiModelProperty(value = "删除标记")
    private String delFlag;

    /**省、市、区 地址*/
    @ApiModelProperty(value = "省、市、区 地址")
    private String address;

    /**是否为默认*/
    @Excel(name = "是否为默认", width = 15)
    @ApiModelProperty(value = "是否为默认")
    private String defaultStatusStr;

    public String getAddress(){
        return province+"-"+city;
    }

    public String getDefaultStatusStr(){
        return  defaultStatus==1 ? "是":"否";
    }

    @Excel(name = "镇", width = 15)
    @ApiModelProperty(value = "镇")
    private String town;

    @Excel(name = "镇编号", width = 15)
    @ApiModelProperty(value = "镇编号")
    private String townCode;

    @Excel(name = "距离", width = 15)
    @ApiModelProperty(value = "距离")
    private Integer distance;
}
